package com.soecode.lyf.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.soecode.lyf.dao.LessonDao;
import com.soecode.lyf.entity.Book;
import com.soecode.lyf.entity.Data;
import com.soecode.lyf.service.LessonService;

@Service
public class LessonServiceimpl implements LessonService{
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	
	// 注入Service依赖
		@Autowired
	private LessonDao lessonDao;
		
		@Override
	public List<Data> getLessonTitle(String subtype) {
			return lessonDao.getLessonTitle(subtype);
	}
		@Override
	public List<Data> getLessonTitleCto(String subtype) {
			return lessonDao.getLessonTitleCto(subtype);
	}
		@Override
	public List<Data> getLessonContent(String title) {
			return lessonDao.getLessonContent(title);
	}
		@Override
	public List<Data> getLessonContenCto(String title) {
				return lessonDao.getLessonContentCto(title);
	}
}
